package api;

import java.util.Scanner;

/**
 * @Author admin
 * @Date 2019/3/27 9:12
 */
public class 字符串反转 {
    public static void main(String[] args) {
        Scanner in = new Scanner(System.in);
        System.out.println("请输入一个字符串：");
        StringBuffer str = new StringBuffer(in.nextLine());
        str.reverse();
        System.out.print("反转后的字符串：" + str);
    }
}
